import java.util.*;


public class PlainTextCollector implements KeywordCollector {
	
	private Set<String> keywords;
	
	public Set<String> getKeywords(Resource res) {
		keywords = new HashSet<String>();
		TextFileIterator tfi = new TextFileIterator(res);
		while(tfi.hasNext()) {
			keywords.add(tfi.next());
		}
		return keywords;
	}

}
